﻿<Window x:Class="cau2.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid Height="374">
        <Label Content="QUAN LY SV" HorizontalAlignment="Left" Margin="175,0,0,335" Name="label1" Width="182" FontSize="18" FontWeight="Bold" Foreground="#FFF90D0D" />
        <Label Content="Mã SV" Height="28" HorizontalAlignment="Left" Margin="19,54,0,0" Name="label2" VerticalAlignment="Top" />
        <TextBox Height="22" HorizontalAlignment="Left" Margin="75,54,0,0" Name="txtma" VerticalAlignment="Top" Width="57" TextAlignment="Center" />
        <Label Content="Mã Khoa" Height="28" HorizontalAlignment="Left" Margin="19,88,0,0" Name="label3" VerticalAlignment="Top" />
        <TextBox Height="22" HorizontalAlignment="Left" Margin="75,88,0,0" Name="txtkhoa" VerticalAlignment="Top" Width="57" TextAlignment="Center" />
        <Label Content="Họ SV" Height="28" HorizontalAlignment="Left" Margin="150,54,0,0" Name="label4" VerticalAlignment="Top" />
        <Label Content="Ngày Sinh" Height="28" HorizontalAlignment="Left" Margin="150,86,0,0" Name="label5" VerticalAlignment="Top" />
        <TextBox Height="24" HorizontalAlignment="Left" Margin="217,52,0,0" Name="txtho" VerticalAlignment="Top" Width="106" />

        <Label Content="Tên SV" Height="28" HorizontalAlignment="Left" Margin="331,52,0,0" Name="label6" VerticalAlignment="Top" />
        <Label Content="Giới Tính" Height="28" HorizontalAlignment="Left" Margin="331,86,0,0" Name="label7" VerticalAlignment="Top" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="383,52,0,0" Name="txtten" VerticalAlignment="Top" Width="120" TextAlignment="Center" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="383,88,0,0" Name="txtgioitinh" VerticalAlignment="Top" Width="120" TextAlignment="Center" />
        <DataGrid Name="datagrid" AutoGenerateColumns="False" Margin="0,117,0,59">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Mã SV" Width="70" Binding="{Binding masv}"  ></DataGridTextColumn>
                <DataGridTextColumn Header="Họ SV" Width="100" Binding="{Binding hosv}"></DataGridTextColumn>
                <DataGridTextColumn Header="Tên SV" Width="100" Binding="{Binding tensv}"></DataGridTextColumn>
                <DataGridTextColumn Header="Ngày Sinh" Width="120" Binding="{Binding ngaysinh}"></DataGridTextColumn>
                <DataGridTextColumn Header="Giới tính" Width="70" Binding="{Binding gioitinh}"></DataGridTextColumn>
                <DataGridTextColumn Header="Mã Khoa" Width="70" Binding="{Binding makhoa}"></DataGridTextColumn>
            </DataGrid.Columns>
        </DataGrid>
        <Button Content="Thêm" Height="23" HorizontalAlignment="Left" Margin="21,339,0,0" Name="btnthem" VerticalAlignment="Top" Width="75" Click="btnthem_Click" />
        <Button Content="Sửa" Height="23" HorizontalAlignment="Left" Margin="105,339,0,0" Name="btnsua" VerticalAlignment="Top" Width="75" Click="btnsua_Click" />
        <Button Content="Xóa" Height="23" HorizontalAlignment="Left" Margin="186,339,0,0" Name="btnxoa" VerticalAlignment="Top" Width="75" Click="btnxoa_Click" />
        <Button Content="Lưu" IsEnabled="False" Height="23" HorizontalAlignment="Left" Margin="267,339,0,0" Name="btnluu" VerticalAlignment="Top" Width="75" Visibility="Visible" AllowDrop="False" Click="button4_Click" />
        <Button Content="Hủy" IsEnabled="False" Height="23" HorizontalAlignment="Right" Margin="0,339,101,0" Name="btnhuy" VerticalAlignment="Top" Width="75" Visibility="Visible" AllowDrop="False" Click="button5_Click" />
        <Button Content="Thoát" HorizontalAlignment="Right" Margin="0,339,20,12" Name="btnthoat" Width="75" Click="btnthoat_Click" />
        <DatePicker Height="25" HorizontalAlignment="Left" Margin="217,85,0,0" Name="datePicker1" VerticalAlignment="Top" Width="115" />
    </Grid>
</Window>
